package cn.leaf.uc.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

/**
    * 角色权限表
    */
@Data
@Builder
@TableName(value = "t_role_permission")
public class RolePermissionEntity {

    @TableId(value = "id")
    private Long id;

    /**
     * 权限ID
     */
    @TableField(value = "permission_id")
    private Long permissionId;

    /**
     * 角色ID
     */
    @TableField(value = "role_id")
    private Long roleId;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_PERMISSION_ID = "permission_id";

    public static final String COL_ROLE_ID = "role_id";
}